﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CapaDatos.DAO;

namespace CapaNegocio
{
   
    //USO DEL PATRON FACTORY
        public class FactoryDAO
        {
            private static FactoryDAO instance;

            private FactoryDAO() { }
            //USO DEL PATRON SINGLETON
            public static FactoryDAO Instance
            {
                get
                {
                    if (instance == null)
                    {

                        instance = new FactoryDAO();
                    }

                    return instance;
                }
            }

            public LibroDAO GetLibroDAO()
            {
                return new LibroDAO();
            }

            public SocioDAO GetSocioDAO()
            {
                return new SocioDAO();
            }
            public PrestamoDAO GetPrestamoDAO()
            {
                return new PrestamoDAO();
            }
           

        }
    }

